package com.topvision.service.impl.sys;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.topvision.mapper.sys.SysCompanyMapper;
import com.topvision.model.sys.SysCompany;
import com.topvision.service.sys.SysCompanyService;

@Service("sysCompanyService")
public class SysCompanyServiceImpl implements SysCompanyService {
	@Autowired
	private SysCompanyMapper sysCompanyMapper;
	
	@Override
	public SysCompany queryObject(Long id){
		return sysCompanyMapper.queryObject(id);
	}
	
	@Override
	public List<SysCompany> queryList(Map<String, Object> map){
		return sysCompanyMapper.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return sysCompanyMapper.queryTotal(map);
	}
	
	@Override
	public void save(SysCompany sysCompany){
		sysCompanyMapper.save(sysCompany);
	}
	
	@Override
	public void update(SysCompany sysCompany){
		sysCompanyMapper.update(sysCompany);
	}
	
	@Override
	public void delete(Long id){
		sysCompanyMapper.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		sysCompanyMapper.deleteBatch(ids);
	}

    @Override
    public SysCompany queryObjectByMap(Map<String, Object> map){
        return sysCompanyMapper.queryObjectByMap(map);
    }

    @Override
    public List<SysCompany> queryByParam(Map<String, Object> map){
        return sysCompanyMapper.queryByParam(map);
    }
}
